import axios from "axios";
// import setting from "./setting.js"
const service = axios.create({
    baseURL: 'http://localhost:10011/',
    timeout: 5000
});
service.interceptors.request.use(function (config) {
    // 在发送请求之前做些什么
    config.headers.token = localStorage.getItem("token");
    return config;
  }, function (error) {
    // 对请求错误做些什么
    return Promise.reject(error);
  });
export default service